Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Added checkbox for terms and conditions #802

Closed
wants to merge 1 commit into from

Conversation

pavle995
Copy link

@pavle995 pavle995 commented May 29, 2022

Added checkbox for terms and conditions
Prompting window with terms and conditions text
Sending time when it's checked to backend and storing it in postgres

(WIP) Missing terms and conditions text!

See #714

Comment on lines +4 to +7
await queryInterface.addColumn(`Groups`, 'termsAndConditionsAcceptedAt', {
allowNull: false,
type: DataTypes.DATE,
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

problem: this needs to be a User property, not a Group property.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, what if one user creates multiple groups?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. In that case they have already accepted the Terms & Conditions. They apply to humans, not to groups. Groups are legally represented by humans, so the humans have to accept the terms.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for explanation! I'll work on change and create new PR

className="cursor-pointer text-blue-500"
onClick={() => setShowTermsAndCond(true)}
>
 I accept terms and conditions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: use CSS to add spacing, not content.

@coderbyheart coderbyheart marked this pull request as draft May 29, 2022 21:31
@coderbyheart coderbyheart changed the title Added checkbox for terms and conditions (WIP) Added checkbox for terms and conditions May 29, 2022
@coderbyheart coderbyheart linked an issue May 30, 2022 that may be closed by this pull request
4 tasks
@coderbyheart
Copy link
Member

Closing in favour of #844

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Users must accept Terms and Conditions before creating a group
2 participants